import {get,post} from './http'

export const getIndexGoods = ()=> get('/api/getindexgoods')
export const getNew =()=>get('/api/getnew')
export const getSeckill =()=>get('/api/getseckill')
export const getCate=()=>get('/api/getcate')
export const getGoods=params=>get('/api/getgoods?fid='+params)
export const login =data=>post('/api/login',data)
export const register =data=>post('/api/register',data)
export const getGroupon=()=>get('/api/getgroupon')
export const getGoodsInfo=params=>get('/api/getgoodsinfo?id='+params)
export const cartList=params=>get('/api/cartlist?uid='+params)
export const cartAdd =data=>post('/api/cartadd',data)
export const cartDelete =data=>post('/api/cartdelete',data)